<div style="margin: 15px;">
    <form class="layui-form layui-form-pane" method="post" enctype="multipart/form-data">
        <div class="layui-form-item">
            <label class="layui-form-label">试题标题</label>
            <div class="layui-input-block">
                <input type="text" name="questiontitle" lay-verify="required" placeholder="试题标题" autocomplete="off"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">试题科目</label>
                <div class="layui-input-block">
                    <select name="questioncourse" lay-verify="questioncourse">
                        <option value="-1">-请选择-</option>
                        <option value="1">科目一</option>
                        <option value="2">科目四</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">试题类别</label>
                <div class="layui-input-inline">
                    <select name="questiontype" id="questiontype" lay-filter="questiontype" lay-verify="questiontype">
                        <option value="-1">-请选择-</option>
                        <option value="1">判断题</option>
                        <option value="2">单项选择题</option>
                        <option value="3">多项选择题</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">试题归类</label>
                <div class="layui-input-block">
                    <select name="classify" id="classify" lay-verify="classify">
                        <option value="-1">-请选择-</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">试题难度</label>
                <div class="layui-input-inline">
                    <select name="difficulty" lay-verify="difficulty">
                        <option value="-1">-请选择-</option>
                        <option value="1">简单</option>
                        <option value="2">中等</option>
                        <option value="3">困难</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">试题内容</label>
            <div class="layui-input-block">
                <textarea placeholder="试题内容" lay-verify="required" name="question" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">试题图片</label>
                <div class="layui-input-block">
                    <input type="file" name="file" onchange="preview(this);" class="layui-upload-icon">
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <img src="" id="uploadimg"  style="width:340px;" />
                </div>
            </div>
        </div>


        <div class="layui-form-item" pane="" id="choice">
            <label class="layui-form-label" id="lblchoice">答案选项</label>
            <div class="layui-input-block" style="padding:0 10px 0 10px;">
                <ul id="ulchoice">
                    <li>
                        <input type="text" name="choicea"  placeholder="答案选项A" autocomplete="off"
                               class="layui-input" style="margin-top:10px;" lay-verify="required">
                    </li>
                    <li>
                        <input type="text" name="choiceb"  placeholder="答案选项B" autocomplete="off"
                               class="layui-input" style="margin-top:10px;" lay-verify="required">
                    </li>
                    <li>
                        <input type="text" name="choicec"  placeholder="答案选项C" autocomplete="off"
                               class="layui-input" style="margin-top:10px;" lay-verify="choice">
                    </li>
                    <li>
                        <input type="text" name="choiced"  placeholder="答案选项D" autocomplete="off"
                               class="layui-input" style="margin-top:10px;margin-bottom:10px;" lay-verify="choice">
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-form-item" pane="" id="rightanswer">
            <label class="layui-form-label">试题答案</label>
            <div class="layui-input-block">
                <ul id="rdoanswer">
                    <li  style="float:left;"><input type="radio" name="ranswer" value="A" title="A" lay-verify="rdoanswer">
                    </li>
                    <li  style="float:left;"><input type="radio" name="ranswer" value="B" title="B" lay-verify="rdoanswer">
                    </li>
                    <li  style="float:left;"><input type="radio" name="ranswer" value="C" title="C" lay-verify="rdoanswer">
                    </li>
                    <li  style="float:left;"><input type="radio" name="ranswer" value="D" title="D" lay-verify="rdoanswer">
                    </li>
                </ul>
                <ul id="chkanswer">
                    <li  style="float:left;"><input type="checkbox" name="canswer[]" value="A" title="A" lay-verify="chkanswer">
                    </li>
                    <li  style="float:left;"><input type="checkbox"  name="canswer[]" value="B" title="B" lay-verify="chkanswer">
                    </li>
                    <li  style="float:left;"><input type="checkbox"  name="canswer[]" value="C" title="C" lay-verify="chkanswer">
                    </li>
                    <li  style="float:left;"><input type="checkbox"  name="canswer[]" value="D" title="D" lay-verify="chkanswer">
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">试题解析</label>
            <div class="layui-input-block">
                <textarea placeholder="试题解析" lay-verify="required" name="analysis" class="layui-textarea"></textarea>
            </div>
        </div>
        <input type="hidden" name="id" />
        <input type="hidden" name="method"  />
        <button lay-filter="save" lay-submit style="display: none;"></button>
        <button id="retbtn" type="reset" class="layui-btn layui-btn-primary" style="display: none;">重置</button>
    </form>
</div>